﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:OPDSViewerProtoScreens" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:pi="http://schemas.microsoft.com/prototyping/2010/interactivity" x:Name="Home_1_Name"
	mc:Ignorable="d"
	x:Class="OPDSViewerProtoScreens.Home_1"
	Width="640" Height="480">
	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="ProjectDataSources.xaml"/>
			</ResourceDictionary.MergedDictionaries>
			<DataTemplate x:Key="CatalogItemTemplate">
				<StackPanel Orientation="Horizontal">
					<TextBlock Text="{Binding Nom}" Style="{DynamicResource BasicTextBlock-Sketch}"/>
					<TextBlock Margin="10 0 0 0" Text="("  Style="{DynamicResource BasicTextBlock-Sketch}" />
					<TextBlock Text="{Binding Status}" Style="{DynamicResource BasicTextBlock-Sketch}"/>
					<TextBlock Text=")"  Style="{DynamicResource BasicTextBlock-Sketch}" />
					<TextBlock Margin="10 0 0 0" Text="Updated : "  Style="{DynamicResource BasicTextBlock-Sketch}" />
					<TextBlock Text="{Binding DateMaj}" Style="{DynamicResource BasicTextBlock-Sketch}"/>
				</StackPanel>
			</DataTemplate>
		</ResourceDictionary>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource MyCatalogsDataSource}}">
		<local:HeaderComponent VerticalAlignment="Top" d:LayoutOverrides="Height, VerticalMargin" d:IsPrototypingComposition="True"/>
		<ListBox Margin="8,227.5,170.833,67.5" Style="{DynamicResource ListBox-Sketch}" ItemTemplate="{DynamicResource CatalogItemTemplate}" ItemsSource="{Binding Collection}"/>
		<Button Content="Add catalog" HorizontalAlignment="Left" Height="31" Margin="40,0,0,28.5" Style="{DynamicResource Button-Sketch}" VerticalAlignment="Bottom" Width="154.5"/>
		<TextBlock Height="24.743" Margin="8,202.757,299.5,0" Style="{DynamicResource BodyLeft-Sketch}" VerticalAlignment="Top"><Run Language="fr-fr" Text="Liste de mes catalogues"/></TextBlock>
		<Button Content="Consult" Height="31" Margin="270,0,0,28.5" Style="{DynamicResource Button-Sketch}" VerticalAlignment="Bottom" Width="155" HorizontalAlignment="Left" d:LayoutOverrides="Width">
			<i:Interaction.Triggers>
				<i:EventTrigger EventName="Click">
					<pi:NavigateToScreenAction TargetScreen="OPDSViewerProtoScreens.Catalog"/>
				</i:EventTrigger>
			</i:Interaction.Triggers>
		</Button>
		<TextBox Margin="8,93,20,0" Style="{DynamicResource Note-Sketch}" TextWrapping="Wrap" Text="Text presenting a summary of what can do OPDS Viewer" Height="105.757" VerticalAlignment="Top"/>
	</Grid>
</UserControl>